<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <canvas
      id="myCanvas"
      style="border: 1px solid #d3d3d3"
      width="600"
      height="600"
    ></canvas>
    <script>
      /** @type {HTMLCanvasElement} */
      var canvas = document.getElementById("myCanvas");
      var ctx = canvas.getContext("2d");

      ctx.beginPath();
      ctx.arc(300, 300, 100, 0, Math.PI * 2);
      ctx.fillStyle = "red";
      ctx.fill();
      ctx.stroke();
    </script>
  </body>
</html>
